﻿@model IEnumerable<Metro.Kashikoi.ServiceContract.Item.StockItem>
@{
    ViewBag.Title = "Index";
    ViewBag.MenuId = "itemMasterLink";
}
<h2>
    Items</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
        </th>
        <th>
            Name
        </th>
        <th>
            Generic Name
        </th>
        <th>
            Category
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id })
            </td>
            <td>
                @item.Name
            </td>
            <td>
                @item.GenericName
            </td>
            <td>
                @item.Category.Name
            </td>
        </tr>
    }
</table>
